package org.dromara.system.domain.bo;

import org.dromara.common.core.enums.NoticeMessageType;
import org.dromara.system.domain.SysMessage;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 系统管理-消息通知业务对象 sys_message
 *
 * @author LionLi
 * @date 2024-03-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysMessage.class, reverseConvertGenerate = false)
public class SysMessageBo extends BaseEntity {

    /**
     * 主键
     */
    @NotBlank(message = "主键不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 消息发送者id
     */
    private Long sendId;

    /**
     * 消息接收者id
     */
    private Long recordId;

    /**
     * 标题
     */
    private String title;

    /**
     * 消息类型
     * NOTICE_RECEIVE_TASK：收到巡店任务，
     * NOTICE_RECEIVE_TASK_DELETE：巡店任务被删除，
     * NOTICE_CREATE_TASK_DONE：巡店任务完成，
     * NOTICE_PATROL_REPORT_CORRECTING：收到待整改报告，
     * NOTICE_PATROL_REPORT_VALIDATING：收到待审核报告，
     * POS_ABNORMAL_WARNING：收银异常预警，
     * NOTICE_WAIT_REVISIT：待回访通知，
     * SNAP_PATROL_ISSUE_MSH_PUSH：抓拍巡检问题通知
     * @see org.dromara.common.core.enums.NoticeMessageType
     */
    @NotBlank(message = "消息类型不能为空", groups = {AddGroup.class})
    private NoticeMessageType type;

    /**
     * 阅读状态0：未读，1：已读
     */
    private String status;

    /**
     * 消息内容
     */
    private String messageContent;

    /**
     * 地址
     */
    private String url;

    /**
     * 阅读时间
     */
    private Date readTime;


    private  Long taskStartTime;

    private  Long taskEndTime;

    /**
     * 门店id
     */
    private Long storeId;




}
